
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
        <ul class="searchContent">
            <li ><label><@label key='materialCode.C,colon'>物料编号：</@label></label> <input type="text" name="materialCode" value="${condition.materialCode!''}"/></li>
            <li ><label><@label key="materialText.C,colon">物料描述：</@label></label> <input type="text" name="materialText" value="${condition.materialText!''}"/></li>
        </ul>
        <ul class="searchContent">
            <li ><label><@label key='warehouse.C,colon'>仓库：</@label></label> <input type="text" name="warehouseCode" value="${condition.warehouseCode!''}"/></li>
            <li ><label><@label key="storageLocation.C,colon">库位：</@label></label> <input type="text" name="storageLocationCode" value="${condition.storageLocationCode!''}"/></li>
            <li class="query">
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit"><@label key="query.B">查询</@label></button>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="safetyinventroy_add" labelKey="add.B" defalutName="新增">
            <li><a class="add"  mask="true" width="650" height="300" href="${rc.getContextPath()}/manage/safetyinventroy/addSafetyinventroy?navTabId=${navTabId!''}" target="dialog" title="<@label key='add.B'>新增</@label>"><span><@label key='add.B'>新增</@label></span></a></li>
            </@buttonRight>
            <@buttonRight menuCode="safetyinventroy_edit" labelKey="edit.B" defalutName="修改">
            <li><a class="edit" mask="true" width="650" height="300" href="${rc.getContextPath()}/manage/safetyinventroy/modifySafetyinventroy?id={safetyinventroy_id}&navTabId=${navTabId!''}" target="dialog" title="<@label key='edit.B'>修改</@label>"><span><@label key='edit.B'>修改</@label></span></a></li>
            </@buttonRight>
            <li><a class="icon" mask="true" width="650" height="300" target="dialog" mask="true" resizable="false" rel="viewSafetyinventroy"
            href="${rc.getContextPath()}/manage/safetyinventroy/viewSafetyinventroy?id={safetyinventroy_id}&navTabId=${navTabId!''}"><span><@label key="view.B">详情</@label></span></a></li>
            <@buttonRight menuCode="safetyinventroy_delete" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/safetyinventroy/deleteSafetyinventroy?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelSafetyinventroy.M'>确认要删除选择的缺陷吗？</@label>"><span><@label key="delete.B">删除</@label></span>
                </a></li></@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="164">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="30"><@label key="serialNumber.C">序号</@label></th>
                <th width="120" orderField="materialCode" <#if (page.orderField?? && page.orderField == 'materialCode')>class="${page.orderDirection!''}"</#if>><@label key='materialCode.C'>物料编号</@label></th>
                <th width="120" ><@label key='materialText.C'>物料描述</@label></th>
                <th width="100"><@label key='warehouse.C'>仓库</@label></th>
                <th width="100"><@label key='storageLocation.C'>库位</@label></th>
                <th width="80"><@label key='safetyInventory.C'>安全库存</@label></th>
                <th width="80"><@label key='maxInventory.C'>最大库存</@label></th>
                <th width="100" orderField="createUser"<#if (page.orderField?? && page.orderField == 'createUser')>class="${page.orderDirection!''}"</#if>><@label key="createUser.C">创建人</@label></th>
                <th width="100" orderField="createDateTime"<#if (page.orderField?? && page.orderField == 'createDateTime')>class="${page.orderDirection!''}"</#if>><@label key="createDateTime.C">创建时间</@label></th>
                <th width="100" orderField="modifyUser"<#if (page.orderField?? && page.orderField == 'modifyUser')>class="${page.orderDirection!''}"</#if>><@label key="modifyUser.C">修改人</@label></th>
                <th width="100" orderField="modifyDateTime"<#if (page.orderField?? && page.orderField == 'modifyDateTime')>class="${page.orderDirection!''}"</#if>><@label key="modifyDateTime.C">修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as safetyinventroy>
            <tr target="safetyinventroy_id" rel="${safetyinventroy.id!''}">
                <td><input name="ids" value="${safetyinventroy.id!''}" type="checkbox"></td>
                <td>${page.startRow + safetyinventroy_index}</td>
                <td>${safetyinventroy.materialCode!''}</td>
                <td>${safetyinventroy.materialText!''}</td>
                <td>${safetyinventroy.warehouseCode!''}</td>
                <td>${safetyinventroy.storageLocationCode!''}</td>
                <td>${safetyinventroy.safetyInventory!''}</td>
                <td>${safetyinventroy.maxInventory!''}</td>
                <td>${safetyinventroy.createUser!''}</td>
                <td>${(safetyinventroy.createDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td>${safetyinventroy.modifyUser!''}</td>
                <td>${(safetyinventroy.modifyDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
            </tr>
        </#list>
        <#else>
        <tr target="safetyinventroy_id">
                <td colspan="12" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="safetyinventroy_id">
                <td colspan="12" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/common/panelBar.html">
</div>